<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="refresh" content="3,url=/?page={{page}}&keyword={{keyword}}">
  <title>执行结果</title>
  <link rel="stylesheet" href="/public/css/style.css">
</head>
<body>

  <div class="result {{'success' if err===0 else 'fail'}}">
    <h4>{{ desc }}</h4>
    <small>
      倒计时 <b id="timer">3</b> 秒后跳转到首页 <br>
      手动跳转到 <a href="/?page={{page}}&keyword={{keyword}}">首页</a>
    </small>
  </div>
  
  <script>
  let time = +timer.innerText;
  let int = setInterval(function(){
    timer.innerText = --time;
  },1000)
  </script>

</body>
</html>